package com.example;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
//        //初始化适配器
//        ArrayAdapter<String> teacherAdapter =new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,Teacher.getAllTeachers());
//        //通过id获取listview
//        ListView listView=findViewById(R.id.teacher_listView);
//        //设置listview的适配器
//        listView.setAdapter(teacherAdapter);
    }
}
